// 将参数转成Body 表单格式
export const transformBody = (data: object) => {
  let ret = "";
  for (let it in data) {
    ret += encodeURIComponent(it) + "=" + encodeURIComponent(data[it]) + "&";
  }
  return ret.slice(0, -1);
};
